#include <iostream>
using namespace std;
int main()
{
    int a[5];
    int num = 0;
    int temp;
    while(true)
    {

        //scanf("%d",&temp);
        //a[num] = temp;
        scanf("%d",&a[num]);
        num++;
        if(num>=3)
           break;
    }
    printf("total number is %d\n",num);
    for(int j = 0; j<num; j++)
        printf("%d ",a[j]);
    
}